package main

import (
	_ "go-kube-mgr/controllers/initcontroller"
)

func main() {
	//kubeconfig, err := os.ReadFile("./config/kubeconfig")
	//if err != nil {
	//	msg := err.Error() + "读取kubeconfig文件失败"
	//	panic(msg)
	//}
	//fmt.Println(string(kubeconfig))
	//deploy := k8sappsv1.Deployment{}
	//mydeploy := kubeutilsappsv1.NewDeployment(string(kubeconfig), &deploy)
	//deploylist, err := mydeploy.List("default", "", "")
	//if err != nil {
	//	logs.Error(nil, err.Error())
	//}
	//for _, d := range deploylist.([]k8sappsv1.Deployment) {
	//	fmt.Println(d)
	//}

}
